﻿@namespace BlazorComponent
@typeparam TTabs
@inherits ComponentPartBase<TTabs>

@if (TabItems.Any())
{
    <BWindow Value="Value" @attributes="GetAttributes(typeof(BWindow))">
        @foreach (var tabItem in TabItems)
        {
            <BWindowItem Value="@tabItem.Value"
                 ActiveClass="@tabItem.ActiveClass"
                 Disabled="@tabItem.Disabled"
                 Class="@tabItem.Class"
                 Style="@tabItem.Style"
                 @attributes="GetAttributes(typeof(BWindowItem))">
                @tabItem.ChildContent
            </BWindowItem>
        }
    </BWindow>
}

